<?require_once("includes/header.php") ?>
  <div class="clear"></div>
  <div id="content_sec">
    <div class="col1">
      <h1 class="heading brown">Contact</h1>
    
		<div class="item">
		<p>'SHANTI DHAM',<br/> 3702, Annanagar,</p>
		<p>Block Q-96, 3rd Avenue, 1st Main Road,</p>
		<p>Opp. 14 Shopping Complex</p>
		<p>Pincode 600040</p>
		<p>044 26267441, 26202682, 26202855</p>
		<p>044-26266765</p>
		<p>Email : <a href="mailto:bkshantidham@gmail.com"><u>bkshantidham@gmail.com</u></a></p>
		
		</div>
   
		<h1 class="heading brown">Feedback</h1>
		<form method="post" action="contact-pro.php" onsubmit="return validateForm(this)">
		<div class="static">
			<ul class="forms">
			  <li class="txt">Name</li>
			  <li class="inputfield">
				<input name="usr_name" class="bar" type="text">
			  </li>
			</ul>
		   	<ul class="forms">
			  <li class="txt">Email</li>
			  <li class="inputfield">
				<input name="usr_email" class="bar" type="text">
			  </li>
			</ul>
			<ul class="forms">
			  <li class="txt">Phone</li>
			  <li class="inputfield">
				<input name="usr_phone" class="bar" type="text">
			  </li>
			</ul>
			<ul class="forms">
			  <li class="txt">Subject</li>
			  <li class="inputfield">
			  <input name="usr_subject" class="bar" type="text">
				
			  </li>
			</ul>
			<ul class="forms">
			  <li class="txt">Message</li>
			  <li class="textfield">
				<textarea name="usr_msg" cols="" rows="5"></textarea>
			  </li>
			</ul>
			<ul class="forms">
			  <li class="txt">&nbsp;</li>
			  <li class="buttonone" ><input style="padding:4px" type="submit" value="Submit"/></li>
			</ul>
				
		</div>
		</form>
			
		<div style="min-height:400px;">&nbsp;</div>
    </div>
    <div class="col2">
			 <?include_once("includes/tamilnadu-centres.php") ?>
              
                <div class="clear"></div>
              
    </div>
    
    <script language="javascript">
function validateForm(vFormObject)
{

	var user_msg="";
	var emailfilter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if(vFormObject.usr_name.value=="")
	{
		user_msg +=  "Name cannot be empty. Please check.\n";
		
	}

	if(vFormObject.usr_email.value!="")
	{
		
		if (!emailfilter.test(vFormObject.usr_email.value)){

			user_msg +="Invalid Email address. Please check.\n";

		}
	}
	if(vFormObject.usr_subject.value=="")
	{
		
		user_msg +="Subject  cannot be empty. Please check.\n";
		
	}
	if(vFormObject.usr_msg.value=="")
	{
		
		user_msg +="Message content  cannot be empty. Please check.\n";
		
	}

	if(user_msg=="")
	{
		return true;
	}
	else
	{

		alert(user_msg);
		return false;
	}


}

</script>
 <?require_once("includes/footer.php") ?>
 
 